home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Moving Fantasies
/
Moving Fantasies.iso
/
install.bat
next >
Wrap
DOS Batch File
|
1992-12-15
|
4KB
|
126 lines
@echo off
echo off
cls
REM
REM Check Drives Specified
REM
if (%1) == () goto noDriveSpecified
if %1 == a: goto NotOnThatDrive
if %1 == A: goto NotOnThatDrive
if %1 == b: goto NotOnThatDrive
if %1 == B: goto NotOnThatDrive
if %1 == c: goto NotOnThatDrive
if %1 == C: goto NotOnThatDrive
if %1 == d: goto checkDest
if %1 == D: goto checkDest
if %1 == e: goto checkDest
if %1 == E: goto checkDest
if %1 == f: goto checkDest
if %1 == F: goto checkDest
if %1 == g: goto checkDest
if %1 == G: goto checkDest
if %1 == h: goto checkDest
if %1 == H: goto checkDest
goto notOnThatDrive
:checkDest
if %2a == a goto noDriveSpecified
if %1 == a: goto NotOnThatDrive
if %1 == A: goto NotOnThatDrive
if %1 == b: goto NotOnThatDrive
if %1 == B: goto NotOnThatDrive
if %2 == c: goto begin
if %2 == C: goto begin
if %2 == d: goto begin
if %2 == D: goto begin
if %2 == e: goto begin
if %2 == E: goto begin
if %2 == f: goto begin
if %2 == F: goto begin
if %2 == g: goto begin
if %2 == G: goto begin
if %1 == h: goto begin
if %1 == H: goto begin
goto notOnThatDrive
:begin
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ MOVING FANTASIES CD-ROM INSTALLATION ║
echo ║ ║
echo ║ This will create a directory called %2\GIFBASE on your destination ║
echo ║ disk, and will install the GIFBASE program in that directory. ║
echo ║ ║
echo ║ If you don't want to install GIFBASE now, press Ctrl-Break. ║
echo ║ Otherwise, press a key. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
REM
REM MAKE DIRECTORY
REM
echo Creating directory %2\GIFBASE...
if not exist %2\GIFBASE\*.* goto go1
:dirExists
echo
echo There is already a \GIFBASE directory on drive %2. If you don't
echo want to install GIFBASE into that directory, press Ctrl-Break.
echo Otherwise, press any key to install GIFBASE into %2\GIFBASE.
pause
goto go2
:go1
md %2\GIFBASE
:go2
REM
REM INSTALL FILES
REM
echo Installing GifBase Files...
%1\INSTALL\PROGRAM.EXE -o %2\GIFBASE > nul
rem %1\INSTALL\CSHOW832.EXE -o %2\GIFBASE > nul
%1\INSTALL\VIEWERS.EXE -o %2\GIFBASE > nul
%1\INSTALL\DATABASE.EXE -o %2\GIFBASE > nul
if not exist %2\GIFBASE\GIFBASE.EXE goto error
goto done
REM=====================================================================
REM GENERAL ERROR SECTION
REM=====================================================================
:noDriveSpecified
echo
echo Installation Error: To install GIFBASE, you must specify the drive
echo letter of the CD-Rom you are installing FROM, and the hard drive
echo you are installing TO. For example: if you are installing from
echo CD-Rom drive D: to hard drive C:, you should type:
echo INSTALL D: C:
echo ...and press Enter.
goto errorDone
:notOnThatDrive
echo
echo Installation Error: Each drive letter must be a letter from D to H,
echo and must be followed by a colon. For example, "INSTALL D: C:" will
echo install GIFBASE from CD-Rom on drive D: to hard drive C:.
goto errorDone
:error
echo
echo General Installation Error: Perhaps there isn't enough space on
echo your destination disk. GifBase requires 1 megabyte of free space.
goto errorDone
:errorDone
echo
echo GIFBASE was not installed correctly.
:done
%2
cd \gifbase
echo
echo GIFBASE has been installed.
echo
echo Type "GO" and press [Enter] to run the program!
echo